cmake_minimum_required(VERSION 2.8.11)
project(utility)


# set(CMAKE_CXX_STANDARD 11)
SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")

set(GTEST googletest-release-1.10.0)
include_directories("./include" "${GTEST}/googletest/include/", "${GTEST}/googlemock/include/")
link_directories("build/gtest")
link_directories("build/gtest/lib")

SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")

add_library(${CMAKE_PROJECT_NAME}_lib src/utility.cpp)

add_executable(unit_test test/unit_test.cpp)
target_link_libraries(unit_test ${CMAKE_PROJECT_NAME}_lib gtest gmock gtest_main pthread)